from urllib import response
import urllib.request

url = "https://www.tute.edu.cn/xysh/yxtzsd.htm"
req1 = urllib.request.Request(url)
req1.add_header('user-Agent',
                'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36')
response1 = urllib.request.urlopen(req1)
html = response1.read().decode('utf-8')
print(html)

response1 = urllib.request.urlopen(
    "https://www.tute.edu.cn/__local/6/F6/65/810526C24A2D78CA7980017F8AC_66F27B38_D79E4.jpg")
img = response1.read()
with open('x1.jpg', 'wb')as f:
    f.write(img)
print("图片x1.jpg储存成功！")